home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 2 / Mac Magazin and MacEasy Magazine CD - Issue 02.iso / Themen Mac Magazin / Multimedia / Grafik-&QT Tools / Imageryƒ / Imagery 1.9 Manual (Txt) < prev    next >
Text File  |  1994-07-25  |  48KB  |  590 lines

  1.  
  2.  
  3.  
  4.  
  5.     
  6.         
  7. 
  8.  
  9.  
  10.         Imagery v1.9
  11.  
  12.         A utility to convert Macintosh, Apple IIgs, Atari ST, Amiga, IBM PC and 
  13.         Unix graphics, sound and movie files into Macintosh compatible files.
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.         Sunday 19 June 1994
  37.  
  38.         ©1990-1994 Jeff Lewis
  39.  
  40.  
  41. What’s New In Imagery 1.9
  42.  
  43. Greetings. I’m sure some of you have wondered where Imagery had gone to - it has been almost two years since the last release. Alas, major work problems lead to almost no free time for me to work on Imagery. (This wouldn’t be that bad a thing if I could say I made a lot of money doing all that work - but I didn’t. Ah well.)
  44.  
  45. Anyway, Imagery should be back on track again and so without any further delay, here is Imagery 1.9.
  46.  
  47. New Features
  48.  
  49. Imagery now allows you to save a preferred conversion setup and allows you to convert batches automatically by drag-dropping files over the Imagery icon while holding down the Command key.
  50.  
  51. Preview icons can now be added automatically by selecting an option in the output format selection dialog (see documentation).
  52.  
  53. EPSF files can include a Macintosh compatible preview as well. 
  54.  
  55. IMPORTANT NOTE!
  56. Imagery 1.9 requires System 7.0 or later and Quicktime 1.6.1 or later.
  57.  
  58. This version of Imagery requires Quicktime 1.6.1 or later for some of its features, and relies heavily on the offscreen bitmap features found in System 7.0 or later. Originally, my goal was to make sure that everyone, including users of System 6 and owners of 68000 based Mac, could convert graphics files on their choice of systems and machines. Alas, the sheer overpowering weight of new features and programmer support in System 7.0 and even more so in 7.1, and in Quicktime, which only works on 68020 and higher Macs compels me to move on.
  59.  
  60. The fact is that a new colour capable Macintosh is cheaper than your original MacPlus or SE and will give you many great new features. Similarly, System 7 is just too good an improvement over System 6 to put off using any longer. I know that System 7 eats up a lot more memory - try 7.5 with Quckdraw GX if you really want to see your memory vanish - but the truth is that you get a lot for that memory.
  61.  
  62. For owners of older Macs who cannot afford to upgrade - hey, I hear you and I know what you’re going through. For what it’s worth, this was not an easy decision for me to make. However, I want to get on with using the new features of System 7 and I don’t want to have to write a whole version of MacOS to simulate the features I want to use in System 6.
  63.  
  64. The next version of Imagery will be even more tightly coupled to System 7, probably requiring features only found in System 7.1 or later, so be warned.
  65.  
  66. New Formats
  67.  
  68. Sounds and Movies. Imagery now supports converting several sound formats from various machines.Technically, this is outside the scope of Imagery which is supposed to be a graphics converter, but I got tired of all the strange sound converters which wouldn’t just simply convert my file, but insisted on bringing up all sorts of issues. So, Imagery now simply converts sound files.
  69.  
  70. The sound file formats currently supported on input are:
  71.  
  72. Extension†    System    Format    Status    Description
  73. .SND    IBM PC    Sound    Tested    SND Sound File.
  74. .SOU    IBM PC    Sound    Tested    SOU Sound File.
  75. .VOC    IBM PC    Sound    Tested    Creative Systems VOC Sound File.
  76. ‘FSSD’    Macintosh    Sound    Tested    SoundWave Sound File
  77. ‘jB1 ‘    Macintosh    Sound    Tested    SoundEdit Sound File
  78. ‘Sd2f’    Macintosh    Sound    Tested    Sound Designer II Sound File
  79. .AU    Unix    Sound    Tested    Sun/NeXT Sound File
  80. .WAV    Windows    Sound    Tested    Windows WAV Sound File
  81. .
  82. The sound file formats currently supported on output are:
  83.  
  84. Extension†    System    Format    Status    Description
  85. ‘snd ‘    Macintosh    Sound    Tested    System 7 Sound File
  86. ‘AIFF’    Multisys    Sound    Tested    Apple AIFF File
  87. ‘jB1 ‘    Macintosh    Sound    Tested    SoundEdit Sound File
  88. .WAV    Windows    Sound    Tested    Windows WAV Sound File
  89.  
  90. Note that Extension refers to the file name extension or to the Macintosh file signature (type) code. Since Imagery automatically detects the format of Macintosh files, you shouldn’t have to worry about this for Mac files, but for PC files, the filename is usually one to eight characters followed by a period and upto three more characters. The “period and upto three characters” are the extension for the file. On PCs, this is used to identify what kind of file the file is and Imagery also uses this as in many cases, it is the only way to tell what kind of file a file is.
  91.  
  92.  
  93. More Bitmap Output Formats
  94.  
  95. Imagery now generates more bitmap output formats:
  96.  
  97. Extension†    System    Format    Status    Description
  98. ‘EPSF‘    Macintosh    Bitmap    Tested    Photoshop 2.5 compliant EPSF file with preview
  99. ‘PICT’    Macintosh    Bitmap    Tested    Standard Macintosh PICT2 file
  100. .PCX    IBM-PC    Bitmap    Tested    ZSoft PCX file
  101. .TGA    IBM-PC    Bitmap    Tested    Targa file
  102. .JPG    Multisys    Bitmap    Tested    JFIF standard JPEG compressed file
  103. .GIF    Multisys    Bitmap    Tested    Compuserve GIF file
  104.  
  105. JPEG Support Integrated
  106.  
  107. Imagery now supports JPEG/JFIF file input and output directly within Imagery. No new versions of Imagery-JPEG will be released. Note, this requires Quicktime and a Color Quickdraw capable Macintosh.
  108. Quicktime 1.6.1 requires a mere 20K of system heap when not in use and I argue that this is such a small overhead for so many features that everyone who can run it should have Quicktime 1.6.1 or later on their system.
  109.  
  110. Applications Files
  111.  
  112. If an application is dropped onto Imgery, it will find all ‘ICON’ and ‘PICT’ resources and convert them into the selected output format. This was added as a quick way to generate PC compatible files for porting Mac applications to Windows or to aid programmers in creating documentation for Mac applications.
  113.  
  114. Animation Files
  115.  
  116. These formats are supported differently. The Atari formats are treated as a sequence of bitmap images while the FLI/FLC files are actually treated as animation files and are converted to Quicktime. The Atari formats as well as Amiga ANIM and ANM files will be added to full Quicktime support in the next release.
  117.  
  118. Extension†    System    Format    Description
  119. .ANI    Atari ST    Animation    Neochrome Animation File
  120. .FLM    Atari ST    Animation    Animatic Film
  121. .IC1    Atari ST    Animation    Imagic Film/Picture File (16 clr)
  122. .IC2    Atari ST    Animation    Imagic Film/Picture File (4 clr)
  123. .IC3    Atari ST    Animation    Imagic Film/Picture File (mono)
  124. .FLC    IBM PC    Animation    FLI Autodesk Animation File.
  125. .FLI    IBM PC    Animation    FLI Autodesk Animation File.
  126.  
  127. Bug Fixes
  128.  
  129. A bug which caused some GIF files to crash has been fixed.
  130. A bug which caused the TIFF writer to create files which were incompatible with many TIFF readers seems to have been fixed. 
  131. More protection for memory overwrites and running out of memory has been added. A simple disk caching system has been added (this will be improved in the next release).
  132. Problems with palettes in various modes have been fixed.
  133.  
  134. What's New in Version 1.8.5
  135.  
  136. New formats
  137. Macintosh(tested)
  138.     Generic PICT/PICT2 
  139.         All formats, restricted to current screen resolution.
  140.     
  141. Generic(tested)
  142.     TIFF 4/5 - all formats PC or Mac
  143.         All compression modes defined in the 8/8/88 version of the TIFF 5 manual are supported.
  144.  
  145. Fixes and improvements
  146. Colour map errors for several modes should be fixed now.
  147.  
  148. Apologies
  149. First to Phillip Wing for listing him as Paul Wing, and Jay van Vark for listing him as Jay van Ark in previous versions of the manual.
  150.  
  151. What's New in Version 1.8
  152.  
  153. New formats
  154. Macintosh(tested)
  155.     Photoshop (8BIM)
  156.         Grey, RGB and CMY/CMYK only. HSL, HSV and multichannel not supported.
  157.     Thunderscan (SCAN)
  158.         1, 4 and 5 bit files.
  159.     Imagestudio RIFF (Raster Image File Format)
  160.         Grey, RGB and CMY/CMYK only. HSL, HSV not supported.
  161.     "TPIC" Targa Files
  162.         Now map to ".TGA" files (see below). 
  163.     
  164. IBM-PC(tested)
  165.     Targa (TGA)
  166.         Uncompressed modes have been tested. RLE not tested, Complex not supported.
  167.     Lotus PIC files
  168.         (Note, the handling of text in this mode is not the best... Thanks to Lotus for docs)
  169.         The type of ".PIC" is automatically detected.
  170.  
  171. Apple IIgs(tested)
  172.     Super-HiRes (.SHR) files.
  173. Apple IIgs(partially tested)
  174.     Apple Preferred (.PNT) files. (Thanks to C. K. Haun)
  175.  
  176. Generic (tested)
  177.     "RAW" file import. See section on this mode as it is fairly complex.
  178.  
  179. Fixes and improvements
  180. New file icons for generated files which more clearly identify the type of image saved. 
  181.  
  182. Imagery now has a rather simple image viewing feature. If you select "Display" as an output format, the file will be converted then displayed. Please note, this feature works best under System 7 and may not work for 24bit files under System 6. Please note, this was thrown in more as a thought exercise and it's pretty lame... next version should be better and offer more features.
  183.  
  184. IBM-PC PCX mode has been completely rewritten. Should work with just about everything.
  185. IBM-PC BMP now handles more variants (Thanks to Jay Van Vark  for these)
  186. XWindows XWD pixel/byte order bug fixed. Should handle more images. 
  187.     (Thanks to Jim McGowan for his samples)
  188.  
  189. Future enhancements
  190. The next version will include Targa "TGA" and ZSoft "PCX" output. I have been told that a lot of "high-end" drawing programs for the PC can only support TGA files and that many other lower-end drawing programs can only support PCX. For example, Windows' Paint program only supports BMP and PCX (which is all the stranger when you consider that Microsoft was one of the two original designers of TIFF...). I may also add an "IFF" output mode for Amiga users.
  191.  
  192. What's New in Version 1.7
  193.  
  194. Fixes and improvements
  195.     IBM PIC, GL and PCX format support improved. Fewer crashes.
  196.         (Thanks to Phillip Wing and Paul Jacoby for pointing out the problem)
  197.     Complete overhaul of memory checking done. Fewer crashes on unusual files. FIxes     peculiar hehaviour on mac IIsi and IIcis.
  198.         (Thanks to Candi on AOL and Wally for their help.)
  199.     Amiga IFF-HAM colour translation now correct and ".HAM" or ".LBM" extensions are recognised.
  200.         (Thanks to Mike Monaco for his help)
  201.  
  202. New Features
  203.     PICT2 24bit files are now possible. Those formats which required that format, such as Amiga HAM files, now work. Also, all PICT2 files now use the "dither" copy mode which will let them translate better on monochrome and non-colour Quickdraw Macs. Note, you require System 7 to see 24-bit direct colour images.
  204.  
  205. Known Problems
  206. GIFLite
  207.     It seems that there is some sort of GIF "supercompressor" called GIFLite which is only available for the PC. It seems to compress GIF files upto an additional 25% and claims to keep the files compatible with standard GIF. According to Paul Wing, some will work with Imagery but others crash seriously. I'm afraid that at this time, I have no intention to support this variant of GIF. If you do have problems with GIFLite files, try GIFConverter.
  208.  
  209. Lotus PIC Files 
  210.     As I mention later in this document, MS-DOS tends to rely on a simple three letter extension to identify what the contents of a file are. Not surprisingly, some three combinations, such as "DOC", "TXT" and "PIC" get used a lot. Lotus and Pictor both use the "PIC" extension, but the files are very different inside. Imagery cannot read Lotus PIC files at this time, although I am attempting to locate documentation on this file format.
  211.  
  212. General Thanks
  213. Thanks to Stu Gove for giving the Sun Raster section a good testing, to Gary Kessler for his excellent suggestions and of course, Paul Jacoby for poking where necessary when necessary.
  214.  
  215. What's New in Version 1.6
  216.  
  217. New formats
  218. Unix  (tested)
  219.     Sun Raster Files (.RAS)
  220.  
  221. Fixes and improvements
  222.     Critical failure in Atari ST PC1, PC2 and PC3 format conversion fixed.
  223.         (Thanks to Ewen Wannop for pointing out the problem)
  224.     Some GRASP GL files would cause lockup and bizarre offsets - fixed.
  225.         (Thanks to Paul Jacoby and  Harry@UMSLVMA.UMSL.EDU for their help)
  226.  
  227.  
  228. What's New in Version 1.5
  229.  
  230. New formats
  231. IBM-PC (untested)
  232.     QRT Raytrace (.QRT) files
  233.     MTV Raytrace (.MTV) files
  234.     
  235. IBM-PC (tested)
  236.     .IMG DRI GEM Image files (mono & colour)
  237.  
  238. Unix (tested)
  239.     XWindows Window Dump Files 
  240.         (.XWD - Thanks to Michael Garnett for the sample file)
  241.     XWindows XBitmap Files (.XBM - Thanks to Mike at NCSU for the generator program)
  242.     Portable Bitmap (.PBM .PGM .PPM) files
  243.  
  244. Unix (untested)
  245.     Sun Raster (.RAS) files
  246.     CMU Window Manager Dump Files (.CMU)
  247.     MGR Window Manager Dump Files (.MGR)
  248.     FITS Files (.FIT)
  249.     HIPS Files (.HIP)
  250.     Usenet FaceSaver Files (.FSV)
  251.     Xerox Doodle Brush File (.XDO)
  252.  
  253. Additions to existing formats
  254. Amiga IFF Extra-halfbright mode is now supported. (Untested)
  255.  
  256. Fixes and improvements
  257. PIC decoder could hang on improperly created files and colours were sometimes incorrectly translated. These problems have been fixed.
  258.  
  259. Previous versions of Imagery would allow you to select an output format which has fewer bits per pixel then the current image. In fact, Imagery doesn’t support this yet with the result that the output file contains gibberish. For example: if the original file was a four bit palette image and the output was TIFF B/G, the output file would be a four bit grey image, but no mapping for the colours would take place - the image would look strange. Similarly, a 24 bit RGB image would generate total garbage if TIFF P or TIFF B/G were selected. However, most of the 24 bit RGB modes override the user selection, so this has not been seen too often. 
  260. This version of Imagery is smarter about such things and will not let you select an inappropriate mode, forcing the selection to the lowest valid one. There is no way to generate a TIFF-B monochrome bitmap from a grey or colour image in this version. That feature will be available in v2.0 which is slated for release at the end of March or April 1992.
  261.  
  262. New features
  263. In answer the the many requests for PICT2 and GIF output, Imagery now offers these output formats. PICT1 (old pict) is not supported, but since System 6.0.5, all Macs including those without colour quickdraw have been able to decode colour PICT2 files. GIF files are always interlaced - since the primary use for GIF is to upload images, they should be interlaced as this lets a downloader preview the image in less than 1/8th the file's full download time. Imagery does not support GIF files of more than eight bit (256 colour) depth nor PICT2 files for 24 or 32 bit colour (yet).
  264.  
  265. What's New in Version 1.2
  266.  
  267.     New formats
  268.     IBM-PC EGAPaint/ColoRIX RIX files (untested)
  269.  
  270.     Additions to existing formats
  271.     Atari ST DR Doodle (DOO) and STad PAC format's now tested
  272.         (Thanks to Wolfgang Lang for the sample files)    
  273.  
  274.     Fixes and improvements
  275.     Better on-line file support documentation
  276.     Monochome TIFF-P palette now automatically generated
  277.     
  278. What's New in Version 1.1
  279.  
  280.     New formats
  281.     Compuserve's GIF
  282.     Compuserve RLE and C-RLE
  283.     IBM Targa files (modes 0, 1, 2, 3, 9, 10 and 11) (untested)
  284.     Atari FCP (Flash Colour Picture) version of RLE
  285.     Atari IMG files (IBM IMG files not supported yet) 
  286.         - old format, STTT and XIMG formats supported
  287.  
  288.     Additions to existing formats
  289.     Window's BMP compressed files (BMP4 and BMP8)
  290.     Amiga IFF RGBN and RGB8 files
  291.     
  292.     Fixes and improvements
  293.     IBM GRASP control file now written as TEXT file
  294.     IBM GRASP image files are now automatically converted to TIFF
  295.     User can now select destination directory
  296.  
  297.  
  298. Abstract
  299. Imagery is a simple utility which converts a range of graphics files from the IBM PC,  Macintosh, Apple IIgs, Atari ST, Unix and Amiga computers. The program generates standard TIFF files in TIFF 4.0/5.0 format compatible with Freehand, Digital Darkroom, Superpaint and many other drawing and editing programs.
  300.  
  301. Introduction
  302. Like many people who wanted a Macintosh but couldn’t afford one, in 1985 I bought an Atari ST - one of the first in Canada and the very first one in Alberta. Within a year, Dave Small created a gimmick called “MagicSac” which allowed an ST to work like an old 64K ROM version Mac.
  303.  
  304. I managed to get a lot done on a single 400K drive system with about 400K free memory. Later I added a second 800K drive. However, when Small left his company to form a new company which created a 128K ROM version of MagicSac called Spectre 128 (later Spectre GCR), I found myself with an interesting problem.
  305.  
  306. To upgrade my ST to the point where it could be seriously useful with Spectre, not to mention buying the Spectre and obtaining a legal set of Mac 128K ROMs - which was becoming increasingly difficult, I would end up spending almost as much as buying a brand new Macintosh SE.
  307.  
  308. Also, Atari had a bad upgrade record with me. My original machine did not have ROMs, although the advertising guarenteed them. Same for an internal RF modulator. Atari never offered the RF modulator as an upgrade and only offered the ROMs as a $30 upgrade. Not much, I appreciate, but I had already more than paid for them. Well, when I asked Atari how I could upgrade my Atari ST to STm level (let alone STe), I was told “You’ll have to buy a new machine” - so I did... a Macintosh.
  309.  
  310. However, I was stuck with a lot of Atari image files in five or six formats (Degas, Degas Compressed, Neochrome, NVision and a handful of random singles) none of which were compatible with each other, let alone with anything on the Mac.
  311.  
  312. So, I wrote a program then called “TIFF-ST” which converted all of these various formats into TIFF files. I chose TIFF for a couple of reasons. First, it is a standard and an easily implimented one. It’s not proprietory. There is no special complex compression system unless you choose to use it and virtually all Mac graphics programs can use a version of TIFF.
  313.  
  314. Later, I found I was getting Amiga IFF files as well as a variety of IBM PC graphics files such as GRASP and PCX. With Windows, BMP was added to the list. I added these to the original TIFF-ST program and changed its name to Imagery.
  315.  
  316. Since then, I have spent a quite a bit of time and effort gathering nearly 4.3MB of information on every file format I can find. I am compiling these files into a single document which I hope to post or publish sometime early next year. Many of these graphics formats have been added to Imagery and I am still adding more with the addition of PICT based images to handle a
  317. collection of vector based image formats such as DXF, IGES and CGM to occur in version 2.0.
  318.  
  319.  
  320. Usage
  321.  
  322. Imagery is very simple to use and under System 7 can be used in two different ways.
  323.  
  324. The simplest way is to launch the program by double clicking the Imagery icon or by selecting the Imagery icon then selecting Open... from the File menu. The first dialog box is a copyright notice which can be dismissed by hitting Enter or Return or by clicking on "Ok".
  325.  
  326. 
  327.  
  328. The biggest new feature here is the replacement of the multiple system specific panels in previous version which listed supported formats and their status, with a single scrolling list box and a notice indicating the number of formats and variants supported in this version of Imagery. A variation of a format typically is a format which has more than one extension - the worst offender being Sun .RAS files which are also known as .RF, .RS, .IM1, .IM8 and .IM24 files, thus counting for six of the formats and variations.
  329.  
  330. The first column is the file extension or file type code. Extensions are used on PCs and other computers to identify the type of file and usually are several letters preceeded by a period placed at the end of a file name. For example, if the file’s name is “bigpict.bmp”, the “.bmp” part is the extension and indicates (if this is from an IBM PC or compatible) that the files is (or rather is likely) a Windows BMP file. I say “is likely” because with a limit of eight characters, the period and three characters for an extension, some of the more obvious extensions tend to get used by several different programs for completely different files. Worse, in many cases, there is no way to tell these variants apart.
  331.  
  332. On the Mac, each file is marked with a signature, a four letter code which identifies the program which created the file and a type, another four letter code which represents what’s in the file. Since both upper and lower characters are distinct, there are 2,820,802,151 file types (not every character is allowed). As well, Apple asks each developer to register their types and signatures to try and prevent collisions. While some have happened, in over ten years, very few have.
  333.  
  334. The second column identifies which system the file is most likely to be found on. The third identifies the type of file: bitmap, vector, sound, animation or mixed format file. The next column gives a status on the format to indicate if it’s been tested, is untested, buggy or is known to fail. “Untested” does not mean “Doesn’t work”. What has happened is that Imagery supports many formats which are so obscure that I could not find a sample file for that format. So, if my documentation is right (and I got the code right) they should work.
  335.  
  336. The final column simply gives a description of the file type.
  337.  
  338. Along the bottom you’ll see several buttons. The OK and Cancel buttons are obvious. OK continues into the program while Cancel quits the program immediately. Save will save a text file of the formats listed in the box above the buttons and More gives you more copyright information of interest mostly to publishers and people who want to include Imagery with their collections.
  339.  
  340.  
  341. Selecting Output Format
  342.  
  343. Selecting "Ok" for either of the previous two dialogs will take to you the output file format selection dialog shown below.
  344.  
  345. 
  346.  
  347. If you’re familiar with earlier versions of Imagery, you’ll notice a lot of new options. First, since Imagery can handle sound and animation files, some way to handle selections of output formats appropriate for those kinds of files was necessary. Worse, since you can drag drop a collection of files with sounds, bitmaps and movies all mixed together, simultaneous selections were necessary.
  348.  
  349. Fortunately, it’s not that difficult. The panel at the top of the dialog will tell you how many files are left to process and the name of the next file to process. Bitmap Output allows the selection of output format for bitmap files. Mode/Resolution options modify the output format for bitmaps where appropriate by allowing you to select preferred file type (monochrome, greyscale, palette or full 32 bit RGB - Imagery does not support 16 bit output at this time), preferred resolution, whether or not to add a Macintosh preview to EPSF files and whether or not to add a preview icon to the file (System 7 only).
  350.  
  351. JPEG output requires Quicktime. If Quicktime is not detected, this option will be dimmed.
  352.  
  353. Display output brings up a window with the image displayed in it. You can continue from this window by clicking on the close box, or by hitting the space bar.
  354.  
  355. EPSF files are Adobe Photoshop 2.5.1 compliant and seems to work correctly with Freehand 4.0 and other programs which can handle an EPSF file. They are also Adobe EPSF 3.0 compliant and are generated in ASCII format as recommended by the Adobe Redbook on Postscript, version 2.
  356.  
  357. You’ll note I stated that these are ‘preferred’ formats and option because in some cases, Imagery will override your choice and select a more appropriate format. For example, Lotus PIC files are vector files and selecting a bitmap format will be overridden in favour of PICT files. A future version will simply convert the PIC to the selected bitmap format - probably v1.9.1.
  358.  
  359. Sound Output allows you to select the preferred output format for sound files that are detected.
  360. Movie Output allows you to select the preferred output format for animation and movie files which are detected. At the moment, only Quicktime MOOV files can be generated and require Quicktime. If Quicktime is not detected, this option will be dimmed.
  361.  
  362. Unlike previous versions of Imagery, this version will allow you to convert files one at a time, changing the output options for each file, or all at once using the same set of options for all files.
  363.  
  364. The Do All button will use the current settings on all files either drag-dropped or selected one at a time. If this button is pressed, you will not see the output format selection dialog again during this session. The Do One button will apply the current settings to the next file and then ask for new settings.  Skip simply skips the next file. Save saves the current settings into the Imagery program. These settings will be used as defaults for output format from the time you save them onwards. As well, if you drag and drop a set of files onto Imagery while holding the Command key, the currently saved settings will be applied to all files automatically. This prevents any dialogs from being shown. Quit exits Imagery immediately. 
  365.  
  366. Selecting Input
  367.  
  368. The next dialog will be the Standard File Selector and you may repeated select image files until all conversions are complete. Selecting "Cancel" will end the program. As each file is processed a status window will inform you about the file being processed and of the current status.
  369.  
  370.  
  371. 
  372.  
  373.  
  374. Since the image files will all be coming from non-Macintosh systems which do not use the Mac's file signature system, there is a problem identifying a graphic file and its internal format. On other systems, a unique - well, mostly unique - extension, typically of three letters, is used to identify the file type. I say "mostly unique" because in fact, there are several major cases where wildly differing file formats have the same extension.
  375.  
  376. To make things simpler, Imagery looks at the file's extension just as a program on one of the other computer systems would and then presumes the image format. Many of the translators also do several checks on the file to confirm that the format matches the extension, but many either do not or cannot (Atari files are the worst for this). The previous file list will give you the required extensions for all formats currently supported.
  377.  
  378.  
  379. Saving Output
  380.  
  381. The program will analyse each file in turn and then generate a new file by appending ".TIFF" to the end of the file and assigning it a "TIFF" signature. This will allow most program which can recognise the TIFF type to see these generated files. A standard output file selector will be displayed:
  382.  
  383.  
  384. 
  385.  
  386.  
  387. Animation files, or composite format files such as GRASP will generate multiple files. If there is a mechanism to identify the files within the source file, then the files will be given those names. Otherwise, they will take on the source file's name with a number appended to it.
  388.  
  389. With these files, you specify the destination for the first file and then that file and all other components will be saved into the same place.
  390.  
  391.  
  392. Raw File Import
  393.  
  394. Imagery now includes a "raw" file import. This allows a knowledgable user to try and decypher and extract a usable image from an unknown or damaged file. Unfortunately, there are so many possible file formats and file compression methods that not all possible files can be imported using this module. Also, the number of parameters and variations makes using this more complex than would be desired.
  395.  
  396.  
  397. 
  398.  
  399.  
  400. When a file cannot be recognised, the user will be given a chance to try raw import. A file extension of ".RAW" will automatically select this mode. You should not select this unless you have some idea as to the internal format of the file. No damage to the original file can happen by selecting this mode.
  401.  
  402. The raw image control dialogue looks like this:
  403.  
  404.  
  405. 
  406.  
  407.  
  408. Told you it was complex, but don't despair, it's not as bad as it looks. Let's examine each of the fields and button groups.
  409.  
  410. The first four fields are pretty straight forward. Width and height define the picture size in pixels and rows. The depth field defines how many bits are used to define each pixel. Offset defines how many bytes to skip from the start of the file to the start of the image data.
  411.  
  412. Beneath these are three groups of radio buttons and one group of checkboxes.
  413.  
  414. Palette:  This attempts to define a palette to translate the pixel data into colours. However, the decyphering of colour palette information (when available) is extremely complex and so, for this version, it is limited to:
  415.  
  416.     Grey
  417.         This is the same as having no colour translation.
  418.     IBM-PC EGA mode (Atari ST default 16 colour mode)
  419.         Normal EGA for bitmaps stored as IRGB.
  420.     Reverse EGA mode
  421.         Used when the EGA bitmaps are stored in reverse order (BGRI)
  422.     IIgs Standard, IIgs SHR, IIgs 3200
  423.         Apple IIgs standard palettes.
  424.  
  425. Organisation: This is the most complicated part of the raw import. Files can be arranged in many different ways. Some keep each pixel's data in one chunk, others gather all of the most significant bits in one plane, then the next and so on. 
  426.  
  427. Let's look at one pixel of four bits 
  428. 
  429.  where "A" is the most significant bit (causes the biggest change in colour or grey leve), and "D" is the least signficant bit (causes the smallest change in colour or grey level). Our hypothetical image can be thought of being made up of width pixels each of four bits as above and height rows of pixels.
  430.  
  431. Four specific organisations are allowed in this import:
  432.  
  433.  
  434. 
  435.  
  436.     Pixel
  437. Each pixel of the image is complete with all bits following from most to least significant. If the number of bits (depth) is not an exact multiple of 2 (1, 2, 4, 8) then  the bits will be packed across bytes.
  438.  
  439.     Plane
  440. The bits which make up the pixels are gathered into planes of similarly significant  bits. For example: all the most significant bits are gathered together as if they were a  one bit depth image followed by the next to most significant and so on until the least  significant bit.
  441.  
  442.     Row
  443. Similar to the plane format, but the bits which make up the first full row of the image are placed one following the other with the next following and so on.
  444.  
  445.     Chunk
  446. This is the most complex format. Based on the row format, it further breaks up the mage into chunks which are interleaved. For eaxample, on the Atari ST, you will see the most significant bits for the first sixteen pixels in the first word, the next most significant bits for the first sixteen bits in the next word and so on down to the least significant bits for the first sixteen pixels in the last word of this group. This then is repeated for the next sixteen pixels and so on for the rest of the image. Imagery takes the size of the chunk from the alignment setting (see below).
  447.  
  448. Alignment: All data in a file must be aligned such that it takes up an exact multiple of eight bits - one byte. For example: even if each row contains six one-bit pixels, you can't write just six bits, you have to write a byte. This is "byte aligned". However, some systems, such as Microsoft Window's BMP, require alignment to a larger chunk - long (32bits) in the case of BMP. This options lets you select the correct alignment. Byte aligns to the next 8 bits, word to the next 16 and long to the next 32.
  449.  
  450. Also, if the image's organisation is "chunk", then this setting also determines the size of the chunk.
  451.  
  452. Options:
  453.     Invert
  454. This turns the image into a "negative" of the data. Some computers consider the lowest number (usually zero) to be black and the largest number to be white while other are the other way around.
  455.  
  456.     Swap Bytes
  457. This option reverses the chunks of the image from Motorola to Intel byte order. The chunk size is determined by the alignment setting (see above).
  458.             Byte:    Not affected.
  459.             Word:    AB -> BA
  460.             Long:    ABCD -> DCBA
  461.  
  462.     Flip Horiztonal
  463. This option flips the image from left to right.
  464.  
  465.     Flip Vertical
  466. This option flips the image from top to bottom.
  467. System 7 Support
  468.  
  469. This version of Imagery has minimal support for System 7 other than to ensure it is compatible, but it does take into account one feature of the System 7 Finder to make using Imagery simpler. 
  470.  
  471. Under System 7, you can drop-launch a program by dragging a file of a type known by that program over the icon for the program. A similar mechanism exists in System 6 and earlier by selecting multiple files including the Imagery program, releasing the shift key and then double-clicking the program icon.
  472.  
  473. Imagery allows any file type to be dragged over its icon and also allows as many files as you wish to be selected this way. When you drop-launch Imagery, the first copyright screen is skipped, as is the Standard File Selector for selecting files and specifying where you want the file to be saved. Only the TIFF format selection dialog will come up to select the format for all the files in the selection.
  474.  
  475. A future version will also add AppleEvents to allow other programs and scripting systems to convert a file on the fly with no user interface at all - the Mac equivalent of a Unix filter program.
  476.  
  477.  
  478. Special Features
  479.  
  480. GRASP
  481. In version 1.0 of Imagery, GRASP GL files were unpacked into a collection of PIC and CLP image files and a TEXT control file. In version 0.5, the TEXT file was given a binary file type which made editing it difficult. As well, the text file was not converted from MS-DOS format to Mac format.
  482.  
  483. In this version, the PIC and CLP image files are now automatically converted to TIFF and the control file is now a TEXT/MACA file which can be opened with TeachText or any other editor which can read standard TEXT files. The MS-DOS format for this text file is now converted to Macintosh format.
  484.  
  485. What are TIFF Files?
  486.  
  487. TIFF stands for "Tagged Image File Format" which was developed by Aldus (Pagemaker, Freehand, Superpaint and Digital Darkroom) and Microsoft (Word, Works, Project, File, etc.). It is a machine independent format designed exclusively for bitmap images. 
  488.  
  489. What makes TIFF unique is its tag based system. Other file formats such as the Amiga IFF and Compuserve GIF formats use tags, but neither of these use a directory system to make finding the tags quick and simple, nor do they allow the highly flexible format and extension of the file format that TIFF provides.
  490.  
  491. TIFF files currently can handle simple monochrome bitmaps, palette based colour images and RGB full colour images of unlimited colour depth (32bits of resolution specification per colour - 4Gig bits of colour info per colour!). As well, there are four compressions schemes: no compression, RLE/Packbits (MacPaint) compression, CCITT-3 Huffman compression (FAX) and LZW (Lempel-Ziv Welch) compression similar to the one used in GIF.
  492.  
  493. Many PC graphics programs and DTP programs can now support TIFF and several use TIFF as a default format for saving pictures. Similarly, most Mac drawing programs and DTP packages can import and export TIFF format files. If you aren't sure, check under "Import" for your favourite drawing or DTP package to see if it is supported. Several programs on the PC now use TIFF exclusively for their file storage.
  494.  
  495. While TIFF files cannot support object based images without having them first translated into a bitmap image, they are very effective for storing scanned images (which was the original intent of the file format) as well as complex and high resolution colour drawings. Further, since the format for this file is widely distributed and is open-license, it is easy for anyone who wishes to support this format to add it to existing software. In fact, several companies including Hewlett-Packard and DEST have been distributing low cost developer's kits for TIFF for several years.
  496.  
  497. TIFF Compliance
  498.  
  499. The TIFF files Imagery generates comply very strictly to the TIFF 5.0 specs as defined in the Aldus/Microsoft TIFF Standard Specification version 5.0 final dated 8 August 1988, with all defaults selected to allow maximum compatibility with TIFF 4.0. The only exception is that I use the SubfileType tag instead of the recommended NewSubfileType because either will work and the former is still more widely accepted. Similarly, wherever the TIFF 5.0 document mentions that TIFF 4.0 only allowed one of several choices now offered in TIFF 5.0, I have selected that choice to ensure compatibility with older TIFF 4.0 readers.
  500.  
  501. The writer conforms to TIFF X, R, G, B and P standards as defined in Appendix B of the aforementioned document and includes all required tags for those formats.
  502.  
  503. None of the generated TIFF files use any form of compression.  This is because most Mac and PC programs are still based on TIFF 4.0.  TIFF 5.0 adds LZW compression similar to the one used in GIF files, but many readers still cannot support that. When TIFF 5.0 becomes the dominant form, I'll add the compression.
  504.  
  505.  
  506. The “TIFF Incompatibility Myth”
  507.  
  508. One of the most annoying statements to me it the one that goes “Yeah, but the real problem with TIFF is that there are so many incompatible kinds of files...” Well, I’d like to take a moment here to debunk that myth.
  509.  
  510. One aspect of TIFF files is that there are both standard and non-standard tags. The standard ones are clearly defined in the TIFF specifications, but the specs also allow for developers to create and use their own tags. Tag numbers zero to 32,767 are reserved for standard tags while the “negative” tags (-1 to -32787) are reserved for developers. Further, Microsoft and Aldus are supposed to keep a complete list of assigned tags. What’s supposed to happen is that a developer writes in and requests a block of tags for their own use - they don’t even have to say what the tags are for.
  511.  
  512. Ok, sounds like a problem, right? How does a reader know what to do with these developer’s tags when there is no way to find out what a tag does? 
  513.  
  514. Well, the answer is this - you don’t have to know. In theory, the image in the file should have all the standard tags and the developer’s tags contain length information. If the tags are correctly formed and written, and if the reader is written correctly, everything should work fine. The image you get may not be perfect, especially if the developer tags contains information about modifying the image, but at least you can get the image out and then reprocess it yourself.
  515.  
  516. So, why the incompatibility myth? 
  517.  
  518. This comes from two things that stem from two all too common problem - programmer laziness and programmer arrogance. The first happened on the IBM PC. The TIFF specs clearly state that all TIFF readers should be able to read MM (Motorola byte order) and II (Intel byte order) files. Most Macintosh applications which could handle TIFF files in fact did read both forms. However, few PC program would read MM format files. This is laziness and arrogance.
  519.  
  520. The second problem lay with programmers who simply could not stick to the standard. By this I refer to two things: creating new tags without registering them and worse, not following the specs when writing the standard tags. An excellent example of this is Teletypesetting’s T-Script PostScript rasterising program. Their 1.4 TIFF export module ignored the rule that states that tags must be written in tag number sorted order. Theirs doesn't. Smarter programs (like Aldus’s Freehand program which seems to be able to read correctly just about anything as a TIFF file) will presort the tags anyway just to make sure - others don’t and reject the file.
  521.  
  522. (The people at Teletypesetting claim that they were working with a newer version of the TIFF standard which allows non-sort order, but I contacted the TIFF support desk at Aldus and they assure me that the 8/8/88 document defining TIFF 5.0 is still the most recent version and that it requires tag sort order. Version 2.0 of TScript fixes this problem.)
  523.  
  524. Simply put, when the TIFF 5.0 spec is followed to the letter, by programmers writing both readers and writers of TIFF files, there is never a case where any TIFF file will be incompatible with any reader on any CPU, except in cases where the program in question is not capable of working with the data contained within the TIFF file - a monochrome bitmap drawing program would not be able to handle TIFF-G, TIFF-P or TIFF-R files all of which contain colour or grey  images.
  525.  
  526. The only other area of contention is the recent addition of LZW compression. Most readers are still TIFF 4.0 readers which are mostly compatible with TIFF 5.0 files except in two ways - one critical tag has been changed (SubfileType -> NewSubfileType) and LZW compression was added. This is why Imagery generates TIFF 4/5 intermediate files. It does not use LZW and it uses SubfileType tags - which is allowed under TIFF 5.0. Imagery files should be readable by TIFF 4.0 and TIFF 5.0 readers.
  527.  
  528. I hope this puts an end to the incompatibility myth.
  529.  
  530. TIFF 6.0
  531.  
  532. Aldus, who currently seem to be the driving force behind TIFF, are about to release version six of the TIFF specs and there are many new and very interesting features including JPEG support. However, much as LZW compression is still widely unused, almost four years after its introduction to TIFF, I suspect that it may be many years before these features become widely used. This is a great pity because they really have added some impressive new features.
  533.  
  534. However, until TIFF 6 becomes more widely supported by readers, Imagery will continue to generate TIFF 4/5 compatible files. The upcoming "Pro" version will offer selectable TIFF 4, 5 or 6 mode generation.
  535.  
  536. User Interface Issues
  537.  
  538. A couple of Imagery users have written to me about my choice of a user interface. Specifically, they argue that it's not Macintosh-like enough. Two points on that: first, check out Font/DA Mover. Written by Apple, part of the system software package... and it works very much like Imagery.
  539.  
  540. Second, and more importantly, my idea was to create something which is very commonplace in Unix - a filter. In Unix, it is common to take a file and pass it though a chain of small programs, each of which do one thing, modifying the data and passing it on to the next program in the chain with the final file being written at the end.
  541.  
  542. This isn't possible on the Mac, but with the addtion of drop-launching, I tried to create a similar idea. You drop the file on the first icon and then pass it through each one until you've filtered the file into a desired form.
  543.  
  544. The fact is that currently, Imagery isn't graphically oriented. To add menus and windows would make the program less effective, not more so. However, Imagery Pro will include editing and modification windows and will gain a user interface when run directly. It will, however, still include the same drop-launch conversion mode.
  545.  
  546. I hope this clears up the questions.
  547. Copyrights and Fees
  548.  
  549. Imagery is not public domain and is copyrighted © 1990-1992 by Jeff Lewis. This program is freeware, although if you find it of any use, please consider a donation to your local SPCA, ASPCA or RSCPA (Society for the Prevention of Cruelty to Animals). If not, there are no Karma penalties for using this package. :-)
  550.  
  551. No charge may be levied for this program, nor may it be included in any package sold for profit without express authorisation from the author.  It may be distributed freely via BBSes and on electronic data services which do not explicitly charge for file downloads, that is, do not charge a per file rate as opposed to a per hour rate, and may be included in freeware/shareware collections as long as no additional charge for its inclusion is levied. Further, no service or distributor may attach additional restrictions to this program or to its distribution. This program must be distributed complete with all documentation and additional programs.
  552.  
  553. If a book publisher or CDROM manufacturer wishes to include Imagery on their CDROM, I only request that a copy of the book or CDROM be sent to me as a token of the inclusion. Only the first edition of a book or CDROM which includes the program is required. (ie: Only one copy of the book or CDROM is required even if the application is included in later editions.) 
  554.  
  555. The author may be contacted via Compuserve at 76217.2241 or via the Internet at werewolf@netcom.com.
  556.  
  557. Bugs and Warranties
  558.  
  559. Warranties: there are none. This is a free program - what do you want for nothing? :-) You use this at your own risk. I've tested it as well as I can and while it's not the best thing I've ever written  (although it is getting better) - it is simple, clean and functional.
  560.  
  561. Bugs: there are probably plenty. I have tried to catch as many as I can, but this was a hack utility which has become sort of a project/hobby and will grow on forever simply because I enjoy playing with it. 
  562.  
  563. Known bugs and weaknesses
  564.  
  565. In order to make the odd file which aligns a row to a long word rather than to a byte (Windows BMP files for example) fit in with TIFF which is row/byte aligned, I just redefine the image to be a little wider. This results in several pixels of garbage along the right edge. It's unlikely this one will be fixed soon.
  566.  
  567. Some file types outright lie about the real size of an image. In these cases, the program may crash because it overruns the image buffer. Some formats are more susceptible to this than others and with these, more extensive checking is done. 
  568.  
  569. Amiga HAM-E IFF files are not yet supported. Normal HAM and Extrahalfbright is supported.
  570.  
  571. The GRASP decoder simply breaks the GL file into its constituant files. These are PIC files which are then quietly rerun through Imagery to convert them to TIFFs. The control file has a TXT extension and can be edited with a text editor.
  572.  
  573. None of the animation decoders actually generates an animation file. Until a standard for animation is defined (ie: QuickTime), this is the best I can do. Palette rotation animation is not supported at all. As well, GRASP files contain a control program which is interpreted and that is outside the scope of Imagery. 
  574.  
  575. I do have an interpreter shell written, but when I asked the author of the PC GRASP program for permission to create a Mac interpreter, he didn't think much of the idea and he did not actually give permission to do this. Since GRASP is a copyrighted program, I do not wish to get into legal hassles over this. So, I am in the process of writing an interpreter/translator which will "compile" the GRASP file into either a PICS file, a MooV (QuickTime movie file) or into a composite file which can be interpreted by a to-be-written run-time system. Since this new form would not actually be interpreting GRASP commands, this should neatly avoid any legal issues.
  576.  
  577.  
  578. Unfortunately, it is unlikely that such a feature will become available until after version 2.0 is realeased.
  579.  
  580. (Note: Since the writing of the above, several people have pointed me to existing GRASP viewers for Unix based on X-Windows. I have obtained the sources for these viewers and hope to be releasing a GRASP viewer called MacGrasp shortly.)
  581.  
  582. Comments and Reports
  583.  
  584. I can be reached via Compuserve at 76217,2241 or via the Internet at werewolf@netcom.com. I'd like to hear about any bugs you may find, and if you know of a graphics file format Imagery doesn't support let me know. If you have a layout for the format, please include it and I'll write it in as quickly as possible. If you have any suggestions, I'd also like to hear them, as long as they're polite :-).
  585.  
  586. Please note that I am no longer reachable via America Online. To explain why, I live in Canada and while America Online is one of the least expensive data services in the States, it is the most expensive one in Canada because of a rather larger service charge they levy. For example, Compuserve (which is the cheapest service in Canada, BTW) runs around CDN$12/hr for 2400 baud connections, while AOL costs US$18.50/hr. I reget this, but until AOL brings their costs into line with CIS in Canada, I cannot afford to use AOL. In fact, it would be cheaper for me to call AOL in the States after 6pm by long distance than to use it in Canada.
  587.  
  588. If you have a file which will not convert correctly, you can send it to me at either address, although I would prefer Internet if possible. I can also make an FTP site available if you need to send a large file. Please email me if you require this.
  589.  
  590.